package com.lang.functionallInterface;

/**
 * @ClassName :ConsumerInterface
 * @Description 定义一个函数式接口 参考 https://github.com/CarpenterLee/JavaLambdaInternals/blob/master/1-Lambda%20and%20Anonymous%20Classes(I).md
 * @Author away
 * @Date 2019/7/28
 */
@FunctionalInterface//用来声明这个接口是函数式接口，只是在编译器做检测
public interface ConsumerInterface<T>{
    void accept(T t);
}
